# class Tast:
#     @classmethod
#     def use_classmet(cls):
#         print("我是类方法")
#
# test = Tast()
# tast.use_classmet()
# Tast.use_classmet()

#
# class Apple：
#     count = 0
#     @classmethod
#
# def add_two(cls):
#       cls.count = 2
#
# print(Apple.count)
# Apple.add_two()
# print(Apple.count)


class Example():
    num = 10
    @staticmethod
    def static_method():
        print(f'类属性的值为:{Example.num}')
        print("---静态方法")

example = Example()
Example.static_method()
Example.static_method()